$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    width: 100%;
    position: relative;

    .bg {
      img {
        width: 100%;
        display: block;
        object-fit: cover;
      }
    }

    .t {
      position: absolute;
      left: 50%;
      top: 45%;
      transform: translate(-50%, -50%);
      color: #FFF;
      font-size: $fontSize_54;
      font-weight: 700;
    }

    .add {
      position: absolute;
      left: 50%;
      bottom: 30%;
      transform: translateX(-50%);
      z-index: 10;
      transition: all 600ms;
      img{
        width: 60/$f+vw;
      }
      &:hover {
        transform:translateX(-50%) rotate(180deg);
      }
    }
  }

  .types {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    align-items: center;

    span {
      width: 1px;
      height: 1.5vw;
      background: #E6E6E6;
    }

    a {
      width: 15vw;
      color: #666;
      font-size: $fontSize_16;
      text-align: center;
      position: relative;
      padding: 1.5vw 0;
      transition: all 600ms;

      &::after {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 3px;
        background: #79C536;
        transition: all 600ms;
      }

      &:hover {
        color: #79C536;
      }
    }

    .active {
      color: #79C536;

      &::after {
        width: 100%;
      }
    }
  }

  .section1{
    position: relative;
    z-index: 1;
    .bg{
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 586/$f+vw;
    }
    img{
        object-fit: cover;
    }
    padding: 5vw 0 7.8vw 0;
    .wrap{
        width: 80vw;
        margin: auto;
        .title{
            text-align: center;
            font-size: 42/$f+vw;
            color: #000;
            font-weight: 500;
            margin: 0 0 38/$f+vw;
        }
        .content{
            display: flex;
            height: 645/$f+vw;
            .production{
                width: 1099/$f+vw;
                height: 100%;
                .img{
                    width: 100%;
                    height: 100%;
                }
                .position{
                    position: absolute;
                    width: 100%;
                    bottom: 0;
                    left: 0;
                    height: 165/$f+vw;
                    background: rgba(0, 0, 0, 0.31);
                    backdrop-filter: blur(5px);
                    z-index: 2;
                    display: flex;
                    align-items: center;
                    div{
                        height: 87/$f+vw;
                        margin: 0 0 0 46/$f+vw;
                        h1{
                            font-size: 32/$f+vw;
                            color: #fff;
                            font-weight: 500;
                            margin: 0 0 15/$f+vw;
                        }
                        p{
                            font-size: 16/$f+vw;
                            font-weight: 400;
                            color: #fff;
                        }
                    }
                    
                }
            }
            .cut{
                flex: 1;
                height: 100%;
                display: flex;
                flex-direction: row-reverse;
                flex-wrap: wrap;
                .list{
                    width: 100%;
                    border-bottom: 2px solid #ECECEC;
                    background: #FFF;
                    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 24/$f+vw;
                    color: #000;
                    font-weight: 400;
                    position: relative;
                    z-index: 1;
                    cursor: pointer;
                    transition: .6s;
                    &::after{
                        content: '';
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        top: 0;
                        left: 0;
                        z-index: -1;
                        background: linear-gradient(90deg, #92D341 0%, #4FAD24 100%);
                        opacity: 0;
                        transition: .6s;
                    }
                    &.on{
                        color: #fff;
                        &::after{
                            opacity: 1;
                        }
                    }
                }
            }
        }

        .figure{
            display: flex;
            justify-content: space-between;
            margin: 82/$f+vw 0 0 0;
            .item{
                text-align: center;
                span{
                    color: #344A83;
                    font-family: Montserrat;
                    font-size: 64/$f+vw;
                    font-weight: 700;
                    display: block;
                    margin: 0 0 10/$f+vw;
                    position: relative;
                    &::after{
                        content: attr(data-text);
                      font-size: 20/$f+vw;
                    }
                    &::before{
                        content: attr(data-text2);
                        position: absolute;
                        left: 105%;
                        white-space: nowrap;
                        font-size: 20/$f+vw;
                        bottom: 16/$f+vw;
                    }
                }
                p{
                    color: #666;
                    font-size: 16/$f+vw;
                    font-weight: 400;
                }
            }
        }
    }
  }

  .section2{
    padding: 5.7vw 0;
    .wrap{
        width: 80vw;
        margin: auto;
        .title{
            text-align: center;
            font-size: 42/$f+vw;
            color: #000;
            font-weight: 500;
            margin: 0 0 72/$f+vw;
        }
        .content{
            position: relative;
            .button{
                position: absolute;
                width: 105%;
                top: 50%;
                left: 50%;
                transform: translate(-50%,-50%);
                z-index: 5;
                pointer-events: none;
                display: flex;
                align-items: center;
                justify-content: space-between;
                img{
                    cursor: pointer;
                    pointer-events: auto;
                    width: 72/$f+vw;
                    height: 72/$f+vw;
                }
            }
            .swiper2{
                width: 100%;
                .item{
                    width: 99%;
                    height: 540/$f+vw;
                    border: 1px solid #416A00;
                    background: #FFF;
                    box-shadow: 0px 0px 20px 0px rgba(45, 69, 7, 0.13);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: .6s;
                    .img{
                        width: 102/$f+vw;
                        height: 102/$f+vw;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        margin: 0 auto 20/$f+vw;
                        img{
                            max-width: 100%;
                            max-height: 100%;
                            object-fit: contain;
                            transition: .3s;
                        }
                    }
                    h1{
                        font-size: 24/$f+vw;
                        color: #333;
                        font-weight: 500;
                        text-align: center;
                        margin: 0 0 30/$f+vw;
                        transition: .6s;
                    }
                    p{
                        width: 262/$f+vw;
                        font-size: 18/$f+vw;
                        line-height: 32/$f+vw;
                        font-weight: 400/$f+vw;
                        margin: auto;
                        transition: .6s;
                    }
                    &:hover{
                        background: #79C536;
                        border: 1px solid transparent;
                        .img{
                            img{
                                filter: brightness(10) grayscale(1);
                            }
                        }
                        h1,p{
                            color: #fff;
                        }
                    }
                }
            }
        }
    }
  }

  .section3{
    padding: 8.4vw 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    img{
      object-fit: cover;
    }
    .bg{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }
    .wrap{
      width: 1266/$f+vw;
      text-align: center;
      h1{
        font-size: 42/$f+vw;
        color: #fff;
        margin: 0 0 42/$f+vw;
      }
      p{
        font-size: 20/$f+vw;
        line-height: 32/$f+vw;
        color: #fff;
      }
    }
  }

  .common_contact{
    position: relative;
    z-index: 1;
    height: 229/$f+vw;
    display: flex;
    align-items: center;
    justify-content: center;
    .bg{
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: -1;
    }
    .wrap{
      display: flex;
      align-items: center;
      justify-content: center;
      h1{
        font-size: 32/$f+vw;
        color: #fff;
        font-weight: 600;
        margin: 0 59/$f+vw 0 0;
      }
      .r{
        width: 578/$f+vw;
        height: 52/$f+vw;
        background-color: #fff;
        border-radius: 4/$f+vw;
        display: flex;
        padding: 0 2/$f+vw 0 18/$f+vw;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .zuo{
          display: flex;
          align-items: center;
        }
        .choice{
          display: flex;
          align-items: center;
          &>p{
            font-size: 14/$f+vw;
            color: #111F2C;
            font-weight: 600;
            margin: 0 12/$f+vw 0 0;
          }
          &>img{
            width: 12/$f+vw;
            height: 12/$f+vw;
          }
        }
        .line{
          height: 16/$f+vw;
          width: 1px;
          background-color: rgba(17, 31, 44, 0.12);
          margin: 0 18/$f+vw 0 15/$f+vw;
        }
        input{
          width: 329/$f+vw;
          border: none;
          background-color: transparent;
          font-size: 16/$f+vw;
          font-weight: 600;
          &::placeholder{
            color: #999;
          }
        }
        button{
          width: 136/$f+vw;
          height: 48/$f+vw;
          border-radius: 4/$f+vw;
          background: #344A83;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 16/$f+vw;
          font-weight: 600;
          color: #fff;
          outline: none;
          border: none;
          cursor: pointer;
        }
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .bg{
        img{
          height: 300px;
        }
      }
      .t{
        font-size: 20px;
      }
      .add{
        bottom:25%;
        img{
          width:20px;
        }
      }
    }
    .types{
      a{
        width: 30%;
        font-size: 14px;
        padding: 10px 0;
        &::after{
          height: 2px;
        }
      }
      span{
        height: 10px;
      }
    }

    .section1{
      padding: 40px 0;
      .bg{
        height: 64%;
      }
      .wrap{
        width: 90%;
        .title{
          font-size: 24px;
          margin: 0 0 20px;
        }
        .content{
          height: auto;
          flex-direction: column;
          .production{
            width: 100%;
            height: 300px;
            .position{
              height:auto;
              padding: 20px 0;
              box-sizing: border-box;
              div{
                margin: 0 3%;
                height: auto;
                h1{
                  font-size: 18px;
                  line-height: 1;
                  margin: 0 0 7px;
                  height: auto;
                }
                p{
                  font-size: 13px;
                  line-height: 2;
                }
              }
            }
          }
          .cut{
            .list{
              height: 50px;
              font-size: 15px;
            }
          }
        }
        .figure {
          display: grid;
          grid-template-columns: repeat(3,1fr);
          gap: 20px 70px;
          .item{
            span{
              width: fit-content;
              margin: 0 auto 10px;
              font-size: 32px;
              &::after,&::before{
                font-size: 14px;
              }
            }
            p{
              font-size: 14px;
              line-height: 1;
            }
          }
        }
      }
    }

    .section2{
      padding: 45px 0;
      .wrap{
        width: 90%;
        .title{
          font-size: 24px;
          line-height: 1;
          margin: 0 0 20px;
        }
        .content{
          .button{
            width: 111%;
            img{
              width: 50px;
              height: 50px;
            }
          }
          .swiper2{
            .item{
              height: 343px;
              padding: 30px 0;
              .img{
                width: 60px;
                height: 60px;
                margin: 0 auto 20px;
              }
              h1{
                font-size: 18px;
                line-height: 1;
                margin: 0 0 15px;
              }
              p{
                width: 75%;
                font-size: 14px;
                line-height: 2;
              }
            }
          }
        }
      }
    }

    .section3{
      padding: 65px 0;
      .wrap{
        width: 90%;
        h1{
          font-size: 24px;
          line-height: 1;
          margin: 0 0 20px;
        }
        p{
          font-size: 14px;
          line-height: 2;
        }
      }
    }

    .common_contact{
      height: 180px;
      .wrap{
        flex-direction: column;
        align-items: unset;

        width: 90%;
        h1{
          font-size: 24px;
          margin: 0 0 20px;
        }
        .r{
          width: 100%;
          height: 52px;
          padding: 0 5px 0 15px;
          box-sizing: border-box;
          .choice{
            p{
              font-size: 14px;
              margin: 0 5px 0 0;
            }
            img{
              width: 12px;
              height: 12px;
            }
          }
          .line{
            width: 1px;
            height: 16px;
            margin: 0 7px;
          }
          input{
            width: 73%;
            font-size: 14px;
          }
          button{
            width: 136px;
            height: calc(100% - 10px);
            font-size: 15px;
          }
        }
      }
    }
  }
}